package com.software.loginregister.entity;

public class Step {
    private int stepNumber;
    private String description;
    private String photoUrl;  // 图片URL
    private int photoRes;     // 本地资源ID
    private boolean isUrl;    // 标记是否使用URL

    // 使用URL的构造方法
    public Step(int stepNumber, String description, String photoUrl) {
        this.stepNumber = stepNumber;
        this.description = description;
        this.photoUrl = photoUrl;
        this.isUrl = true;
    }

    // 使用本地资源的构造方法
    public Step(int stepNumber, String description, int photoRes) {
        this.stepNumber = stepNumber;
        this.description = description;
        this.photoRes = photoRes;
        this.isUrl = false;
    }

    // Getters
    public int getStepNumber() {
        return stepNumber;
    }

    public String getDescription() {
        return description;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public int getPhotoRes() {
        return photoRes;
    }

    public boolean isUrl() {
        return isUrl;
    }
}
